const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const usersSchema = new Schema({
    user_name:{
        type:String,
        unique:true,
        required:true
    },
    password:{
        type:String,
        required:true
    }
})
// 创建模型对象
module.exports = mongoose.model('users',usersSchema);